

import Dictdata from "./Dictdata"
import { PaginationTable } from "@xuekl/cli-core/builder"
import { Selection, Index, Operation } from "@xuekl/cli-core/helper"
import { TableSelection, TableIndex, TableColumn, TableOperation } from "@xuekl/cli-core/types"

export default class DictdataTable extends PaginationTable<Dictdata> implements Selection<Dictdata>, Index, Operation {
    operation: TableOperation = {
        label: '操作',
        width: 100
    }
    index: TableIndex = {
        width: 60,
        label: '序号'
    }
    selection: TableSelection = {}
    selectedData: Dictdata[] = []
    columns: TableColumn<Dictdata>[] = [
        {
            prop: 'dictType',
            label: '字典类型'
        },
        {
            prop: 'dictLabel',
            label: '数据标签'
        },
        {
            prop: 'dictValue',
            label: '数据键值'
        },
        {
            prop: 'cssClass',
            label: '样式属性'
        },
        {
            prop: 'dictSort',
            label: '显示排序'
        },
        {
            prop: 'listClass',
            label: '回显样式'
        },
        {
            prop: 'status',
            label: '状态'
        },
        {
            prop: 'remark',
            label: '备注'
        },
    ]
}